function init_param() {
	var label = document.getElementById('label');
	var cv;
	var balance;
	var url = document.location.search;
	
	var parametrs = url.substring(1);
	
	var nvPairs = parametrs.split("&");

	for (i = 0; i < nvPairs.length; i++) {
		 var nvPair = nvPairs[i].split("=");
		 var name = nvPair[0];
		 var value = nvPair[1];
		 if (name === 'cv') {
			cv = value;
		 }
		 if (name === 'balance') balance = value;
	}
	if (cv !== null || balance !== null) {
		label.innerHTML = '<p>Your balance is ' + balance + '!</p>';
	} else {
		label.innerHTML = 'Incorrect Listener ID';
	}
}

function listener_off() {
	chrome.tabs.create({"url":"html/options.html", "selected":true});
}

